<!DOCTYPE html>
<html lang="zh">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <link rel="stylesheet" href="../lib/OSL/layui/css/layui.css" />
    <link rel="stylesheet" href="../lib/fonts/icomoon/style.css" />
    <link rel="stylesheet" href="../lib/css/page/users_manage.css" />
  </head>

  <body>
    <!-- 卡片区域 -->
    <div class="layui-card">
      <div class="layui-card-header">
        <span>用户管理</span>
        <!-- <button type="button" class="layui-btn layui-btn-normal layui-btn-sm" id="addUsers">添加用户</button> -->
      </div>

      <div class="layui-card-body">
        <!-- //搜索区 -->
        <form class="layui-form" id="form_search">
          <div class="layui-form-item layui-inline">
            <label class="layui-form-label">姓名</label>
            <div class="layui-input-block">
              <input
                type="text"
                name="username"
                placeholder="请输入姓名"
                autocomplete="off"
                class="layui-input"
              />
            </div>
          </div>
          <div class="layui-form-item layui-inline">
            <label class="layui-form-label">账号</label>
            <div class="layui-input-block">
              <input
                type="text"
                name="sno"
                placeholder="请输入账号"
                autocomplete="off"
                class="layui-input"
              />
            </div>
          </div>
          <div class="layui-form-item layui-inline">
            <div style="margin-left: 10px">
              <button
                class="layui-btn btn_search"
                lay-submit
                lay-filter="formDemo"
              >
                搜索
              </button>
              <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
          </div>
        </form>
        <!-- //数据区 -->
        <table class="layui-table">
          <colgroup>
            <col />
            <col />
            <col />
            <col />
            <col />
          </colgroup>
          <thead>
            <tr>
              <th>姓名</th>
              <th>账号</th>
              <th>手机号码</th>
              <th>职务</th>
              <th>操作</th>
            </tr>
          </thead>
          <tbody>

          </tbody>
        </table>
        <!-- //分页区域 -->
        <div id="pageBox"></div>
      </div>
    </div>

    <script src="../lib/OSL/jquery.js"></script>
    <script type="text/javascript" src="../lib/OSL/layui/layui.all.js"></script>
    <script src="../lib/js/baseAPI.js"></script>
    <script src="../lib/js/page/users_manage.js"></script>
    <script src="../lib/OSL/template-web.js"></script>

    <!-- 获取所有用户数据的表格模板 -->
    <script type="text/html" id="tpl-table">
      {{each data}} {{if $value.access_name =='被评者' && $value.access ==0}}
      <tr>
        <td>{{$value.username}}</td>
        <td>{{$value.sno}}</td>
        <td>{{$value.phone_number}}</td>
        <td>{{$value.job}}</td>
        <td>
          <button
            type="button"
            class="layui-btn layui-btn-sm btn_view_record"
            data_id="{{$value.id}}"
            style="background-color: #3a86ff"
          >
            查看
          </button>
          <button
            type="button"
            class="layui-btn layui-btn-sm btn_record_edit"
            style="background-color: #8338ec;"
            data_id="{{$value.id}}"
            data_access_name="{{$value.access_name}}"
          >
            审核
          </button>
        </td>
      </tr>
      {{/if}} {{/each}}
    </script>



<!-- 编辑评分纪实数据模版 -->
<script type="text/html" id="dialog_record_edit">
    <form class="layui-form" id="form_record_user_edit" lay-filter="form_record_edit">
     <table class="layui-table">
          <tbody>
            <tr>
                <th>部门:</th>
                <td>
                  <input
                  type="text"
                  name="dept"
                  autocomplete="off"
                  class="layui-input view-record-input"
                  />
                </td>
                <th>季度</th>
                <td>
                  <input
                  type="text"
                  name="date2"
                  autocomplete="off"
                  class="layui-input view-record-input"
                  />
                </td>
            </tr>
            <tr>
                <th width="100">姓名</th>
                <td>
                    <input
                    type="text"
                    name="username"
                    autocomplete="off"
                    class="layui-input view-record-input"
                    />
                </td>
                <th >职务</th>
                <td>
                    <input
                    type="text"
                    name="job"
                    autocomplete="off"
                    class="layui-input view-record-input"
                    />
                </td>
            </tr>
            <tr>
                  <th>工作岗位</th>
                  <td colspan="3">
                    <input
                    type="text"
                    name="post"
                    autocomplete="off"
                    class="layui-input view-record-input"
                    />
                  </td>
            </tr>
            <tr>
                <th >工作完成情况</th>
                <td colspan="3" height='100'><input
                    style="height: 100%;"
                    type="textarea"
                    name="comp"
                    autocomplete="off"
                    class="layui-input view-record-input"
                    /></td>
            </tr>
            <tr>
                <th>出勤情况</th>
                <td>出勤(天)<input
                    type="text"
                    name="work_day"
                    autocomplete="off"
                    class="layui-input view-record-input"
                    /></td>
                <td>病事假(天)<input
                    type="text"
                    name="off_day"
                    autocomplete="off"
                    class="layui-input view-record-input"
                    /></td>
                <td>迟到早退(次)<input
                    type="text"
                    name="late_order"
                    autocomplete="off"
                    class="layui-input view-record-input"
                    /></td>
           </tr>
           <tr>
              <th  >主管领导意见</th>
              <td height='100'><input
                style="height: 100%;pointer-events:auto !important;"
                type="textarea"
                name="leader_view"
                autocomplete="off"
                placeholder="请输入"
                class="layui-input view-record-input"
                /></td>
              <td>签字:<input
                type="text"
                name="leader_name"
                autocomplete="off"
                class="layui-input view-record-input"
                /></td>
              <td>日期<input
                type="text"
                name="leader_date"
                autocomplete="off"
                class="layui-input view-record-input"
                /></td>
           </tr>
           <tr>
            <th>本人意见</th>
            <td height='100'><input
                style="height: 100%;"
                type="textarea"
                name="self_name"
                autocomplete="off"
                class="layui-input view-record-input"
                /></td>
            <th>本人签字:<input
              type="text"
              name="username"
              autocomplete="off"
              class="layui-input view-record-input"
              /></th>
            <td>日期<input
              type="text"
              name="self_view"
              autocomplete="off"
              class="layui-input view-record-input"
              /></td>
         </tr>
          </tbody>
      </table>
      <div class="layui-form-item">
        <div class="layui-input-block btn-block">
            <button type="button" class="layui-btn .close_btn">关闭</button>
            <button class="layui-btn" lay-submit lay-filter="formDemo">提交</button>
        </div>
    </div>
  </form>
  </script>
 <!-- 评分纪实数据模版 -->
<script type="text/html" id="dialog_record_view">
    <form class="layui-form" id="form_record_view_User" lay-filter="form_record_edit">
        <table class="layui-table">
             <tbody>
               <tr>
                   <th>部门:</th>
                   <td>
                     <input
                     type="text"
                     name="dept"
                     autocomplete="off"
                     class="layui-input view-record"
                     />
                   </td>
                   <th>季度</th>
                   <td>
                     <input
                     type="text"
                     name="date"
                     autocomplete="off"
                     class="layui-input view-record"
                     />
                   </td>
               </tr>
               <tr>
                   <th width="100">姓名</th>
                   <td>
                       <input
                       type="text"
                       name="username"
                       autocomplete="off"
                       class="layui-input view-record"
                       />
                   </td>
                   <th >职务</th>
                   <td>
                       <input
                       type="text"
                       name="job"
                       autocomplete="off"
                       class="layui-input view-record"
                       />
                   </td>
               </tr>
               <tr>
                     <th>工作岗位</th>
                     <td colspan="3">
                       <input
                       type="text"
                       name="post"
                       autocomplete="off"
                       class="layui-input view-record"
                       />
                     </td>
               </tr>
               <tr>
                   <th >工作完成情况</th>
                   <td colspan="3" height='100'><input
                       style="height: 100%;"
                       type="textarea"
                       name="comp"
                       autocomplete="off"
                       class="layui-input view-record"
                       /></td>
               </tr>
               <tr>
                   <th>出勤情况</th>
                   <td>出勤(天)<input
                       type="text"
                       name="work_day"
                       autocomplete="off"
                       class="layui-input view-record"
                       /></td>
                   <td>病事假(天)<input
                       type="text"
                       name="off_day"
                       autocomplete="off"
                       class="layui-input view-record"
                       /></td>
                   <td>迟到早退(次)<input
                       type="text"
                       name="late_order"
                       autocomplete="off"
                       class="layui-input view-record"
                       /></td>
              </tr>
              <tr>
                 <th  >主管领导意见</th>
                 <td height='100'><input
                   style="height: 100%;"
                   type="textarea"
                   name="leader_view"
                   autocomplete="off"
                   class="layui-input view-record"
                   /></td>
                 <td>签字:<input
                   type="text"
                   name="leader_name"
                   autocomplete="off"
                   class="layui-input view-record"
                   /></td>
                 <td>日期<input
                   type="text"
                   name="leader_date"
                   autocomplete="off"
                   class="layui-input view-record"
                   /></td>
              </tr>
              <tr>
               <th>本人意见</th>
               <td height='100'><input
                   style="height: 100%;"
                   type="textarea"
                   name="self_name"
                   autocomplete="off"
                   class="layui-input view-record"
                   /></td>
               <th>本人签字:<input
                 type="text"
                 name="username"
                 autocomplete="off"
                 class="layui-input view-record"
                 /></th>
               <td>日期<input
                 type="text"
                 name="self_view"
                 autocomplete="off"
                 class="layui-input view-record"
                 /></td>
            </tr>
             </tbody>
         </table>
         <div class="layui-form-item">
           <div class="layui-input-block btn-block">
               <button type="button" class="layui-btn .close_btn">关闭</button>
           </div>
       </div>
     </form>
  </script>
  </body>
</html>
